package com.dayfly.tip.ao;

import com.dayfly.tip.model.RecordDO;
import com.dayfly.tip.model.Result;

/**
 * 
 * @author dayfly
 *
 */
public interface RecordAO {
	/**
	 * recore user's note
	 * @param record
	 * @return
	 */
	public Result record(RecordDO record);
	
	/**
	 * get record by user's name
	 * @param userId
	 * @return
	 */
	public Result getRecordByUserId(long userId);
	
	/**
	 * get record by id
	 * @param recordId
	 * @return
	 */
	public Result getRecordById(long recordId);
	
	/**
	 * 
	 * @param recordId
	 * @return
	 */
	public Result deleteRecordById(long recordId);
	
	/**
	 * update the record
	 * 
	 * @param record
	 * @return
	 */
	public Result updateRecord(RecordDO record);

}
